home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Using QuickDrawGX in ODF
- Sent: 9/3/96 11:25 AM
- Received: 9/3/96 11:25 AM
- From: "Scott Daniels" <scottdfl@sprynet.com>
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List
-
-
- Dave,
-
- Thanks for the response. I understand what you are doing in your example,
- but what do I do about non-view contexts such as: FW_CPictureContext &
- FW_CBitmapContext? There appears to be many ODF-based contexts but only one
- GX-based context. I need the ones I specifically mentioned above. Do you
- know how to write them?
-
- Thanks,
- Scott
-
- ----------
- > From: Dave Wilson <dwilson@best.com>
- > To: OpenDoc Development Framework Discussion List
- <ODF-Interest@CILabs.ORG>
- > Subject: Re: Using QuickDrawGX in ODF
- > Date: Sunday, September 01, 1996 2:05 PM
- >
- > Scott,
- >
- > >I would like to draw text rotated on the Macintosh, and it appears that
- > >QuickDrawGX is the only way to do so? However, in looking at GX and ODF,
- it
- > >appears that if I want to render to the view, a bitmap shape, and other
- > >such graphics contexts, I must create these contexts myself?
- >
- > In case it helps, you can take a look at my "GraphicsGX" sample in the
- > Developer University folder that comes with ODF. There I create a
- > viewContext for ODF drawing in one scope, and then a FW_CGraphicContextGX
- > in another scope to draw with GX, as indicated below
- >
- >
- > void CGraphicsGXFrame::Draw(etc.)
- > {
- > this->MyDrawWithODF(ev, odFacet, invalidShape);
- > {
- > FW_CGraphicContextGX gxContext(ev, odFacet,
- invalidShape);
- > this->MyDrawGXBoxes(ev, gxContext);
- > this->MyDrawGXText(ev, gxContext);
- > }
- > }
- >
- > >
- > >Are both of my assertions above valid? Is there any easy way to use just
- > >the text rendering part of GX and still keep using the existing ODF
- graphic
- > >contexts? Does anyone know of some easier way to render text characters
- > >that are rotated (I don't need the connected glyphs of GX, just the
- > >individual characters)?
- >
- > GX is the only way I know of, and we are encouraged to use it with MacOS8
- > in the future.
- >
- > -Dave
- >
- > Dave Wilson
- > Personal Concepts
- > 635 Wellsbury Way
- > Palo Alto, CA 94306
- > voice: 415-494-6763
- > email: dwilson@best.com